/*
 * @Author: Bennty
 * @Date: 2024-07-22 16:08:17
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2024-09-15 11:55:46
 * @Description: 请填写简介
 */

import request from '@/utils/request';

/** 新增 福利信息 */
export const addWelfareApi = (data: any)=>{
    return request({
        url: '/system/welfareInfo',
        method: 'post',
        data: data
    })
};

/**查询 福利信息列表 */
export const getWelfareListApi = (data: any)=>{
    return request({
        url: '/system/welfareInfo/list',
        method: 'post',
        data: data
    });
};

/** 根据id查询福利信息 */
export const getWelfareByIdApi = (id: any) => {
    return request({
        url: `/system/welfareInfo/${id}`,
        method: 'get'
    });
};

/** 修改福利信息 */
export const updateWelfareApi = (data: any) => {
    return request({
        url: '/system/welfareInfo',
        method: 'put',
        data: data
    })
};

/** 删除 福利信息 */
export const deleteWelfareApi = (id: any) => {
    return request({
        url: `/system/welfareInfo/${id}`,
        method: 'delete',
    })
};

/** 修改福利产品状态 */
export const updateWelfareStatusApi = (params: any)=>{
    return request({
        url: '/system/welfareInfo/updateState',
        method: 'delete',
        params: params
    })
};

/** 新增福利采购 */
export const addWelFarePurchaseApplyApi = (data: any) => {
    return request({
        url: '/system/welfarePurchaseApply',
        method: 'post',
        data: data
    });
};